package cn.szabadsag.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 短信发送记录
 * </p>
 *
 * @author yangcong
 * @since 2022-04-13
 */
@TableName("t_smscode_log")
public class SmscodeLog extends Model<SmscodeLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 时间
     */
    @TableField("create_time")
    private Long createTime;
    /**
     * 验证码
     */
    @TableField("sms_code")
    private String smsCode;
    /**
     * 手机号
     */
    private String phone;
    /**
     * IP
     */
    private String ip;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 状态
     */
    private Integer state;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SmscodeLog{" +
        ", id=" + id +
        ", createTime=" + createTime +
        ", smsCode=" + smsCode +
        ", phone=" + phone +
        ", ip=" + ip +
        ", type=" + type +
        ", state=" + state +
        "}";
    }
}
